Spread Silverlight Documentation
Evaluate(Object[]) Method


GrapeCity.CalcEngine.Functions Namespace > CalcReplaceFunction Class > Evaluate Method : Evaluate(Object[]) Method

The args contains 4 items: old_text,start_num, num_chars, new_text.

Old_text is text in which you want to replace some characters.

Start_num is the position of the character in old_text that you want to replace with new_text.

Num_chars is the number of characters in old_text that you want REPLACE to replace with new_text.

New_text is the text that will replace characters in old_text.

Replaces part of a text string, based on the number of characters you specify, with a different text string.
Syntax
'Declaration
 
Public Overloads Overrides Function Evaluate( _
   ByVal args() As System.Object _
) As System.Object
'Usage
 
Dim instance As CalcReplaceFunction
Dim args() As System.Object
Dim value As System.Object
 
value = instance.Evaluate(args)
public override System.object Evaluate( 
   System.object[] args
)

Parameters

args

The args contains 4 items: old_text,start_num, num_chars, new_text.

Old_text is text in which you want to replace some characters.

Start_num is the position of the character in old_text that you want to replace with new_text.

Num_chars is the number of characters in old_text that you want REPLACE to replace with new_text.

New_text is the text that will replace characters in old_text.

Return Value

A System.String value that indicates the evaluate result.
See Also

Reference

CalcReplaceFunction Class
CalcReplaceFunction Members
Overload List